﻿namespace Softserve.Pottery.Ordering.Domains
{
    using System.Data.Services.Common;
    using System.Runtime.Serialization;
    using Softserve.Pottery.Infrastructure;
    using Softserve.Pottery.Infrastructure.Interfaces;  

    [DataContract]
    [DataServiceEntity]
    public class Payment : IValidatable, IDomain
    {
        #region Property

        [DataMember]
        public int Id
        {
            get { return m_Id; }
            set { m_Id = value; }
        }

        [DataMember]
        public int OrderId
        {
            get { return m_OrderId; }
            set { m_OrderId = value; }
        }

        [DataMember]
        public decimal Price
        {
            get { return m_Price; }
            set { m_Price = value; }
        }

        [DataMember]
        public PaymentType Type
        {
            get { return m_Type; }
            set { m_Type = value; }
        }

        #endregion

        #region Methods

        public bool Validate()
        {
            return true;
        }

        #endregion

        #region Private Filds

        private int m_Id = default(int);

        private int m_OrderId = default(int);

        private decimal m_Price = default(decimal);

        private PaymentType m_Type = PaymentType.ElectronicPayment;

        #endregion
    }
}
